package com.nowcoder.community.dao;

import com.nowcoder.community.entity.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>Title: UserMapper</p>
 * <p>author 12427</p>
 *
 * @version ver1.0
 * @date 2022/7/1 21:56
 */

@Mapper
public interface UserMapper {

    User selectById(int id) ;

    User selectByName(String username) ;

    User selectByEmail(String email) ;

    int insertUser(User user) ;

    int updateStatus(int id , int status) ;

    int updateHeader(int id , String headerUrl) ;

    int updatePassword(int id , String password) ;
}
